package mvp.com.bbc.myfarm.ui.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import mvp.com.bbc.myfarm.R;

/**
 * author by ${cbf} on 2017/12/28.
 * changbfa@163.com
 */

public class HomeAdapter extends RecyclerView.Adapter<HomeAdapter.Vholder> {
    @Override
    public HomeAdapter.Vholder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_home_fragment, parent, false);
        return new Vholder(view);
    }

    @Override
    public void onBindViewHolder(HomeAdapter.Vholder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 20;
    }

    public class Vholder extends RecyclerView.ViewHolder {
        public Vholder(View itemView) {
            super(itemView);
        }
    }
}
